/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.institution.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.institution.bean.InstitutionFile;

import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.List;

public interface InstitutionService {
    MessageBean<?> getInstitutionList(String fileName, String corpCode, Integer institutionType, Integer state, String categoryId, Integer page, Integer pageSize);

    MessageBean<?> saveOrCommit(String institutionStr, StaffBean user, MultipartFile[] file);

    MessageBean<?> discardInstitution(String institutionId, StaffBean user);

    MessageBean<?> getHistoryList(String fileName, String corpCode, Integer institutionType,
                                  String version, Integer page, Integer pageSize);

    MessageBean<?> getHistoryListByCode(String code, Integer page, Integer pageSize);

    MessageBean<?> saveFile(MultipartFile[] file);

    MessageBean<?> deleteFile(String filePaths);

//    MessageBean<?> institutionEdit(String corpCode, List<InstitutionFileHistory> historyList, StaffBean user);

    MessageBean<?> getProcessData(String ids);

    MessageBean<?> getInstitutionByCode(String code);

    MessageBean<?> batchEdit(String corpCode, List<InstitutionFile> institutionFileList, StaffBean user, String approverCodeListStr);
}
